﻿@model IEnumerable<YTCMS.Domain.Entities.products>
@using YTCMS.Core;
<table id="sample-table-2" class="table table-striped table-bordered table-hover dataTable" aria-describedby="sample-table-2_info">
    <thead>
        <tr role="row">
            <th class="center sorting_disabled" role="columnheader" rowspan="1" colspan="1" aria-label="" style="width: 97px;">
                <label>
                    <input type="checkbox" class="ace" >
                    <span class="lbl"></span>
                </label>
            </th>
            <th>
                线路名称
            </th>
            <th>
                分类
            </th>
            <th>
                市场价格
            </th>
            <th>
                创建时间
            </th>
            <th>
                订购电话
            </th>
        </tr>
    </thead>


    <tbody role="alert" aria-live="polite" aria-relevant="all">
        @foreach (var item in Model)
        {
            <tr class="odd">
                <td class="center  sorting_1">
                    <label>
                        <input type="checkbox" class="ace" name="chk_product" value="@item.Id">
                        <span class="lbl"></span>
                    </label>
                </td>

                <td class=" ">
                    <a href="/Product/Edit?Id=@item.Id">@item.Name</a>
                </td>
                <td class=" ">@item.category.Name</td>
                <td class="hidden-480 ">@item.Price</td>
                <td class=" ">@item.CreateTime</td>
                <td>
                    @item.Phone
                </td>
            </tr>
        }



    </tbody>
</table>

@Html.AjaxPager((int)ViewBag.PageSize, (int)ViewBag.TotalCount)